package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.LogMapper;
import com.itheima.pojo.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Service(interfaceClass = LogService.class)
@Transactional
public class LogServiceImpl implements LogService {

    @Autowired
    private LogMapper logMapper;
    @Override
    public void addLog(Log log) {
        logMapper.insertSelective(log);
    }
}
